//
//  DsCellDateModeler.m
//  Tour
//
//  Created by 张张烨 on 16/3/10.
//  Copyright © 2016年 张中烨. All rights reserved.
//

#import "DsCellDateModeler.h"
#import "DsCellDateModelsan.h"
@implementation DsCellDateModeler
- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    [super setValue:value forUndefinedKey:key];
    if ([key isEqualToString:@"notes"]) {
        for (NSDictionary *dic in (NSArray *)value) {
            DsCellDateModelsan *oneNote = [[DsCellDateModelsan alloc]initWithDictionary:dic];
            if ([oneNote.col isEqual:@(0)]) {
                if (self.entry_name.length) {
                    oneNote.zeroText = self.entry_name;
                } else {
                    oneNote.col = @(20);
                }
            }
            [self.notess addObject:oneNote];
        }
    }
}

- (NSMutableArray *)notess{
    if (_notess == nil) {
        _notess = [NSMutableArray array];
    }
    return _notess;
}

@end
